package com.liteng.shadow.core.utils;

import com.liteng.shadow.core.consts.FuncType;

public class Const
{
  public static final String SYSTEM_NAME = "shadow";
  public static final String SYSTEM_VERSION = "1.4.2";
  public static final String SYSTEM_UPDATE_TIME = "2018-12-24";
  public static final String LAST_SYSTEM_VERSION = "1.4.2";
  public static final String LAST_SYSTEM_UPDATE_TIME = "2018-12-24";
  public static String licKey;
  private static boolean lic = false;
  public static String PROJECT_PATH;
  public static final String UPLOAD_PATH = "/upload";
  public static final String SESSION_MEMBER = "loginMember";
  public static final String SESSION_ADMIN = "LOGIN_ADMIN";
  public static final String MANAGE_ERROR_FTL_PATH = "/manage/common/error";
  public static final String INDEX_ERROR_FTL_PATH = "/common/error";
  public static final String DEFAULT_IMG_URL = "/res/common/images/nopic.png";
  public static final String DEFAULT_AVATAR = "/res/common/images/default-avatar.png";
  public static final String DEFAULT_PICTURE_COVER = "/res/common/images/empty_album.png";
  public static String GROUP_PATH = "/group/";
  public static String WEIBO_PATH = "/weibo/";
  public static String IP_ADDR = "172.20.20.172";
  public static String PORT = "6006";
  public static String PREFIX = "http://";
  public static String TOPIC_PATH = "/topic/";

  public static void setLic(boolean lic)
  {
    lic = lic;
    if (lic) {
      FuncType.setAUTH(9999);
    } else {
      FuncType.setAUTH(0);
    }
  }
}
